package cn.oms.esb.provider.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("email_verification")
@ApiModel(value="EmailVerification对象", description="")
public class EmailVerification implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "验证邮箱")
    @TableField("USER_EMAIL")
    private String userEmail;

    @ApiModelProperty(value = "邮件类型（1登录验证、0重置验证、2注册验证）(对应邮件类型字典)")
    @TableField("EMAIL_TYPE_CODE")
    private String emailTypeCode;

    @ApiModelProperty(value = "验证码")
    @TableField("VERIFICATION_CODE")
    private String verificationCode;

    @ApiModelProperty(value = "模板码ID")
    @TableField("EMAIL_TEMPLATE_CODE")
    private String emailTemplateCode;

    @ApiModelProperty(value = "邮件格式：正常格式邮件0 HTML格式邮件1 MARCKDOWN格式2")
    @TableField("EMAIL_FORMAT")
    private Integer emailFormat;

    @ApiModelProperty(value = "模板标题")
    @TableField("EMAIL_TEMPLATE_TITLE")
    private String emailTemplateTitle;

    @ApiModelProperty(value = "模板正文")
    @TableField("EMAIL_TEMPLATE_CONTENT")
    private String emailTemplateContent;

    @ApiModelProperty(value = "验证码创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
